import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

//引入axios
import axios from 'axios'

Vue.prototype.$http = axios;

axios.defaults.baseURL = '/api'

// 引入进度条样式
import 'nprogress/nprogress.css'

// 炫酷的粒子动效
import VueParticles from 'vue-particles'

// 引入插件
import VueSweetalert2 from './plugins/vue-sweetalert2'

// 弹窗
import layer from "layui-layer";

// md编辑器
import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'

Vue.use(mavonEditor)

// 使用插件
Vue.use(VueSweetalert2)

Vue.use(VueParticles)

Vue.use(ElementUI)

Vue.use(layer)

// 全局路由守卫
import './router/permission'

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
